<!DOCTYPE html>
<html lang="en">
<head>
    <title>用户添加</title>
<#include "../../comm/meta-base.ftl" />
<#include "../../comm/meta-layui.ftl" />

    <link rel="stylesheet" href="/static/css/index.css" media="all"/>
</head>
<body>


<form class="layui-form layui-form-pane" action="/admin/user/save" method="post">
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
        <legend>用户添加</legend>
    </fieldset>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="请输入姓名"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-inline">
            <input type="text" name="age" lay-verify="number" autocomplete="off" placeholder="请输入年龄"
                   class="layui-input">
        </div>
    </div>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
        <legend>图片上传</legend>
    </fieldset>
    <div class="layui-upload">
        <button type="button" class="layui-btn" id="test">上传图片</button>
        <div class="layui-upload-list">
            <img class="layui-upload-img" id="LAY_demo_upload">
            <p id="demoText"></p>
            <input type="hidden" name="fileUrl">
        </div>
    </div>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
        <legend>下拉选择</legend>
    </fieldset>
    <div class="layui-form-item">
        <label class="layui-form-label">单行选择框</label>
        <div class="layui-input-inline">
            <select name="interest" lay-filter="aihao">
                <option value=""></option>
                <option value="0">JAVA</option>
                <option value="1" selected="">C</option>
                <option value="2">C++</option>
                <option value="3">PHP</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script type="text/javascript" src="/static/js/user.js"></script>
</html>